package cn.lxh.ymcc.feign;

import cn.lxh.ymcc.domain.User;
import cn.lxh.ymcc.feign.impl.UserFeignClientFallBackFactory;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


@FeignClient(value = "service-user",fallbackFactory = UserFeignClientFallBackFactory.class)
public interface UserFeignClient {

    @RequestMapping(value = "/user/user/{phone}",method = RequestMethod.GET)
    User selectByPhone(@PathVariable("phone")String phone);
}
